﻿@model IEnumerable<InformationCenter.Models.UserInfo>

@{
    ViewBag.Title = "Index";
}
<section class="wrapper site-min-height">
    <!-- page start-->
    <section class="panel">
        <header class="panel-heading">
            管理员设置
        </header>
        <div class="panel-body">
            <div class="adv-table editable-table ">
                <div class="clearfix">
                    <div class="btn-group">
                        @Html.ActionLink("Create New", "Create", "",new { @class = "btn btn-danger" })
                    </div>
                </div>
                <br />
                <div class="space15"></div>
                <table class="table table-hover table-bordered">
                    <tr>
                        <th>
                            @Html.DisplayNameFor(model => model.Name)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Password)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Nickname)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Logincount)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Mail)
                        </th>
                        <th>
                            @Html.DisplayNameFor(model => model.Locked)
                        </th>
                        <th></th>
                    </tr>

                    @foreach (var item in Model)
                    {
                        <tr>
                            <td>
                                @Html.DisplayFor(modelItem => item.Name)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.Password)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.Nickname)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.Logincount)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.Mail)
                            </td>
                            <td>
                                @Html.DisplayFor(modelItem => item.Locked)
                            </td>
                            <td>
                                @Html.ActionLink("Edit", "Edit",new {id = item.Id},new { @class= "btn btn-primary btn-xs"}) |
                                @Html.ActionLink("Details", "Details", new {id = item.Id }, new { @class = "btn btn-success btn-xs" }) |
                                @Html.ActionLink("Delete", "Delete", new {id = item.Id }, new { @class = "btn btn-danger btn-xs" })
                            </td>
                        </tr>
                    }
                </table>
            </div>
        </div>
    </section>
    <!-- page end-->
</section>

